<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改员工信息</title>
</head>
<body>
<form action="updatestaff.do"  method="post" enctype="multipart/form-data">
<h1 align="center">修改员工信息</h1>
<c:forEach items="${staffList}" var="al">
<table align="center">
    
     <tr><td><input type="hidden" name="staff_id" value=${al.staff_id }></td></tr>        
	
	<tr><td>员工工资：</td><td><input type="text" name="staff_salary" placeholder=${al.staff_salary }></textArea></td></tr><br>
	<tr><td><input type="submit" value="保存"/></td> <td><input type="button" value="取消" onclick="rback()"/></td></tr>
</table>
</c:forEach>
</form>
<script type="text/javascript">
function rback(){
	var cf=confirm("确定取消修改？");
	if(cf){window.location.href="showstaff.do" }
}
</script>
</body>
</html>